import request from '@/utils/request'

// 查询疫苗申请列表
export function listApplicat(query) {
  return request({
    url: '/dgw/applicat/list',
    method: 'get',
    params: query
  })
}

// 查询疫苗申请详细
export function getApplicat(id) {
  return request({
    url: '/dgw/applicat/' + id,
    method: 'get'
  })
}

// 新增疫苗申请
export function addApplicat(data) {
  return request({
    url: '/dgw/applicat',
    method: 'post',
    data: data
  })
}

// 修改疫苗申请
export function updateApplicat(data) {
  return request({
    url: '/dgw/applicat',
    method: 'put',
    data: data
  })
}

// 删除疫苗申请
export function delApplicat(id) {
  return request({
    url: '/dgw/applicat/' + id,
    method: 'delete'
  })
}

// 导出疫苗申请
export function exportApplicat(query) {
  return request({
    url: '/dgw/applicat/export',
    method: 'get',
    params: query
  })
}

//审核批准
export function updateStatus(data) {
  return request({
    url:'/dgw/applicat/updateStatus',
    method: 'put',
    data: data
  })
}
